package com.xxx.server.service.impl;

import com.xxx.server.pojo.Role;
import com.xxx.server.mapper.RoleMapper;
import com.xxx.server.service.IRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cd
 * @since 2023-12-19
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {
    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Boolean getMenusWithRole(Role role) {
        boolean save = this.save(role);
        return save;


    }

    @Override
    public List<Role> getRoleList() {
        List<Role> list = this.list();
        return list;
    }
}
